import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;

public class TestJedis {
    public static void main(String[] args) {
        Jedis jedis = new Jedis(new HostAndPort("localhost",6379));
        jedis.setex("foo", 300, "ar");
        String value = jedis.get("foo");
        jedis.zadd("books", 9, "Java concurrecy in practice");
        System.out.println(value);
    }
}
